<include file="App/Home/View/Public/header.html"/>
			<!-- BEGIN PAGE CONTENT-->
            <div class="row">
                <div class="col-md-12">
					<!-- BEGIN CONDENSED TABLE PORTLET-->
					<div class="portlet box blue-hoki">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-picture"></i>我的委托
							</div>
							<div class="tools">
								<a href="javascript:;" class="collapse">
								</a>
								<a href="#portlet-config" data-toggle="modal" class="config">
								</a>
								<a href="javascript:;" class="reload">
								</a>
								<a href="javascript:;" class="remove">
								</a>
							</div>
						</div>
						<div class="portlet-body">
							<div class="table-scrollable">
								<table class="table table-condensed table-hover">
								<thead>
								<tr>
									<th>委托时间</th>
									<th>币种</th>
									<th>类型</th>
									<th>委托数量</th>
									<th>成交数量</th>
									<th>尚未成交</th>
									<th>状态</th>
									<th>操作</th>
								</tr>
								</thead>
								<tbody>
								<foreach name="list" item="vo">
									<tr>
										<td>{$vo.add_time|date='Y-m-d H:i:s',###}</td>
										<td>{$vo.currency_id|getCurrencynameByCurrency=###}</td>
											<eq name="vo['type']" value="sell"> <td class="red"><else/><td style="color:#039904;"></eq>{$vo.type|fomatOrdersType=###}</td>
										<td>{$vo.num|floatval=###}</td>
										<td>{$vo.trade_num|floatval=###}</td>
										<td>{$vo['num']- $vo['trade_num']|floatval=###}</td>
										<td>{$vo.status|formatOrdersStatus=###}</td>
										<td><a href="javascript:void(0)"  onclick="cexiao({$vo.orders_id})">撤销</a></td>
									</tr>
								</foreach>
								</tbody>
								</table>
							</div>
						</div>
					</div>
					<!-- END CONDENSED TABLE PORTLET-->
				</div>
            </div>         
<script>
	function cexiao(_this){
	if(confirm('确定撤销委托？')){
	  $.post('{:U('Entrust/cancel')}',{status:-1,order_id:_this},function(data){
				   if(data['status'] == 1){
					   alert(data['info']);
					   setTimeout(window.location.reload(),1000);
				   }else{
					 	alert(data['info']);
				   }
			})
	}
	}
</script>   
<include file="App/Home/View/Public/footer.html"/>